body {
  position: relative;
  width: 100vw;
  height: 100vh;
}

#root {
  width: 80%;
  height: 624px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.tool {
  padding: 0 10px;
  line-height: 24px;
  height: 24px;
  width: 100%;
}

.tool span {
  cursor: pointer;
}

.tool span:hover {
  color: #fa9120;
}

.container {
  width: 100%;
  height: calc(100% - 24px);
  position: relative;
  display: flex;
}

.area {
  width: 50%;
  max-width: 50%;
  height: 100%;
  border: 2px dashed #eee;
  border-radius: 8px;
  position: relative;
}

.area .img-box {
  position: absolute;
  left: 0;
  height: 0;
  z-index: -1;
  pointer-events: none;
}

.area img {
  pointer-events: none;
}

#control canvas {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
}
